// 修改个人资料
import request from '@/utils/request';

export function EditUser(data) {
  return request({
    url: '/index/editUser',
    method: 'post',
    data: data,
  });
}

// 获取七牛云数据
export function getUploadToken(data) {
  return request({
    url: '/index/getUploadToken',
    method: 'post',
    data: data,
  });
}
// 上传接口
export function upDateImg(data) {
  return request({
    url: '/index/imageUpload',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'multipart/form-data',
    },
  });
}

// 修改密码
export function getEditPwd(data) {
  return request({
    url: '/index/editPwd',
    method: 'post',
    data: data,
  });
}

// 是否是高考版
export function getIsGKB(data) {
  return request({
    url: '/index/isGKB',
    method: 'post',
    data: data,
  });
}

// 是否是高考版--新
export function getGkbInfo(data) {
  return request({
    url: '/index/gkbInfo',
    method: 'post',
    data: data,
  });
}

// 查询电话号码
export function getAboutInfo() {
  return request({
    url: '/index/aboutInfo',
    method: 'post',
    // data: data,
  });
}

//获取关注列表
export function likeList(data) {
  return request({
    url: '/index/likeList',
    method: 'post',
    data: data,
  });
}
